//
//  PayForPasswordView.m
//  WuJieLive
//
//  Created by 张瀚坤 on 2017/11/8.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import "PayForPasswordView.h"

@implementation PayForPasswordView


-(void)awakeFromNib
{
    [super awakeFromNib];
    [self setupView];
}

- (void)setupView
{
    self.backgroundColor = [UIColor clearColor];
    self.tf = [[HKPasswordTF alloc]init];
    self.tf.elementCount = 6;
    self.tf.elementMargin = 0;
    self.tf.elementBorderColor = TextLessImportColor;
    [self.bgView addSubview:self.tf];
    [self.tf mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(15);
        make.right.offset(-15);
        make.top.equalTo(self.headerView.mas_bottom).offset(20);
        make.height.offset(50);
    }];
    self.forgetBtn = [[UIButton alloc]init];
    [self.bgView addSubview:self.forgetBtn];
    [self.forgetBtn addTarget:self action:@selector(forgetAction) forControlEvents:(UIControlEventTouchUpInside)];
    [self.forgetBtn setTitle:@"忘记密码" forState:(UIControlStateNormal)];
    [self.forgetBtn setTitleColor:TextLessImportColor forState:(UIControlStateNormal)];
    self.forgetBtn.titleLabel.font = FontSize(12);
    [self.forgetBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.offset(-15);
        make.top.equalTo(self.tf.mas_bottom).offset(10);
        make.size.mas_offset(CGSizeMake(50, 15));
    }];
    
}

- (void)forgetAction
{

}

- (IBAction)removeAction:(UIButton *)sender {
    [self removeFromSuperview];
}


- (IBAction)removeViewAction:(UIButton *)sender {
    [self removeFromSuperview];
}

@end
